package prueba.svn;

public class Datos {
	
	protected String nombre;
	protected String email;
	protected int dni;
	
	public Datos () {
		this.nombre="";
		this.email="";
		this.dni=0;
	}
	
	public Datos (String n ,String e, int d) {
		this.nombre = n;
		this.email = e;
		this.dni = d;		
	}
	
	public void setNombre(String n) {
		this.nombre = n;
	}
	
	public void setEmail(String e) {
		this.email = e;
	}
	
	public void setDni(int d) {
		this.dni = d;
	}
	
	public String getNombre() {
		return this.nombre;
	}
	
	public String getEmail() {
		return this.email;
	}
	
	public int getDni() {
		return this.dni;
	}
	
	public String toString() {
		String str ="Nombre: "+ this.nombre + "\n Email: "
							+ this.email + "\n DNI: "+this.dni;
		return str;
	}
	
	

}
